<?php
/*********************************************
 *  CPG Dragonfly™ CMS
 *********************************************
	Copyright © since 2010 by CPG-Nuke Dev Team
	http://dragonflycms.org

	Dragonfly is released under the terms and conditions
	of the GNU GPL version 2 or any later version

	$Source$
	$Revision$
	$Author$
	$Date$
**********************************************/

class Poodle_DateTime extends DateTime
{
	function __construct($time=null, DateTimeZone $timezone=null)
	{
		if ($time instanceof DateTime) { $time = $time->getTimestamp(); }
		if (is_int($time) || (ctype_digit($time) && 20380119<$time)) {
			parent::__construct(null, $timezone);
			$this->setTimestamp($time);
		} else {
			parent::__construct($time, $timezone);
		}
	}
}
